package com.rock.qrcodelibrary.eventbus;

import java.net.Socket;

/**
 * Created by wanghaixin on 17/9/21.
 */
public class MessageEvent {
    private int type;
    private String msg;
    private Socket socket;

    public MessageEvent(String msg, int type) {
        this.msg = msg;
        this.type = type;
    }

    public Socket getSocket() {
        return socket;
    }

    public void setSocket(Socket socket) {
        this.socket = socket;
    }

    public MessageEvent(String msg, Socket socket, int type) {
        this.msg = msg;
        this.socket = socket;
        this.type = type;
    }

    public MessageEvent() {
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
